﻿
using Core.SimpleTemp.Common;
using Core.SimpleTemp.Entitys;
using Core.Toolkit.Core.Application;
using System;

namespace Core.SimpleTemp.Application
{
    [CreateMap(typeof(JG_STOPTimes))]
    public class JG_STOPTimesDto : Dto
    {
        /// <summary>
        /// 部门
        /// </summary>
        public Guid? department { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        public Guid? duty { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public Guid? name { get; set; }

        public bool? IsWarn { get; set; }
        public string WarnType { get; set; }

        public string FrequencyText
        {
            get;set;
            //get {
            //    switch (this.WarnType)
            //    {
            //        case "01": return "每月执行1次，提前" + this.WarnDays + "天提醒";
            //        case "02": return "每周执行1次，提前" + this.WarnDays + "天提醒";
            //        case "03": return "每日执行1次，提前" + this.WarnDays + "天提醒";
            //        default:return "未设置";
            //    }
            //}
        }

        public int? BeginTimeByMonth { get; set; }
        public int? BeginTimeByWeek { get; set; }
        public int? BeginTimeByDay { get; set; }
        /// <summary>
        /// 提醒频次
        /// </summary>
        public int? WarnTime { get; set; }
        /// <summary>
        /// 提醒开始时间
        /// </summary>
        public DateTime? WarnBeginTime { get; set; }
        /// <summary>
        /// 提前提醒天数
        /// </summary>
        public int? WarnDays { get; set; }
        /// <summary>
        /// 隶属工厂
        /// </summary>
        public Guid? CreateFactory { get; set; }
        /// <summary>
        /// 添加部门
        /// </summary>
        public Guid? CreateDept { get; set; }
        /// <summary>
        /// 更改部门
        /// </summary>
        public Guid? UpdateDept { get; set; }


        public  SysDepartmentDto SysDepartment { get; set; }
        public SysDuty SysDuty { get; set; }

        public SysUser SysUser { get; set; }
    }
}
